from selenium import webdriver
from lxml import etree
from time import sleep
# 自动获取信息---chromedirive查找对应的驱动
bro = webdriver.Chrome(executable_path='./chromedriver.exe')
bro.get('http://scxk.nmpa.gov.cn:81/xk/')
page_text = bro.page_source


tree = etree.HTML(page_text)
name_list = tree.xpath('//div[@id="FileItems"]//dl/@title')
for li in name_list:
    name = li
    print(name)
sleep(2)
bro.quit()
